#include <stdio.h>

int randomiza (int intervalo) {
	return rand()%intervalo;
}

int main (int argc, char **argv) {
	FILE *fp;
	int i,j,max;

	max=atoi(argv[1]);
	
	srand(time(0));

	fp = fopen (argv[2], "w");
	for (i=1; i<=max; i++) {
		for (j=1; j<=10; j++)
			fprintf(fp, "%d ", randomiza(100));
		fprintf(fp, "%d \n", randomiza(100));
	}
}
